# -*- coding: utf-8 -*-
# @Time     :2021/9/8 17:25
# @Author   : master
# @Software : PyCharm
from selenium.webdriver.common.by import By


class LoginPageLocator():
    # 元素定位
    # 用户名输入框
    name_text = ('xpath', '//*[@id="app"]/div/div[2]/div[2]/form/div[1]/div/div[1]/input')
    # 密码输入款
    pwd_text = ('xpath', '//*[@id="app"]/div/div[2]/div[2]/form/div[2]/div/div/input')
    # 登录按钮
    login_but = ('xpath', '//*[@id="app"]/div/div[2]/div[2]/form/button')
    # 错误提示框 - 登录区域
    errorMsg_from_loginArea =('xpath',  '//*[@id="app"]/div/div[2]/div[2]/form/div[1]/div/div[2]')
    # 错误toast
    errorToast = ('xpath', "/html/body/div[3]/div/div/div[1]/div/span")